package com.shire.shire_interface.model.stat;

import java.util.ArrayList;
import java.util.List;

public class CsGroupStatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CsGroupStatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCsidIsNull() {
            addCriterion("csId is null");
            return (Criteria) this;
        }

        public Criteria andCsidIsNotNull() {
            addCriterion("csId is not null");
            return (Criteria) this;
        }

        public Criteria andCsidEqualTo(Integer value) {
            addCriterion("csId =", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotEqualTo(Integer value) {
            addCriterion("csId <>", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThan(Integer value) {
            addCriterion("csId >", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("csId >=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThan(Integer value) {
            addCriterion("csId <", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThanOrEqualTo(Integer value) {
            addCriterion("csId <=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidIn(List<Integer> values) {
            addCriterion("csId in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotIn(List<Integer> values) {
            addCriterion("csId not in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidBetween(Integer value1, Integer value2) {
            addCriterion("csId between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotBetween(Integer value1, Integer value2) {
            addCriterion("csId not between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNull() {
            addCriterion("wxAccount is null");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNotNull() {
            addCriterion("wxAccount is not null");
            return (Criteria) this;
        }

        public Criteria andWxaccountEqualTo(String value) {
            addCriterion("wxAccount =", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotEqualTo(String value) {
            addCriterion("wxAccount <>", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThan(String value) {
            addCriterion("wxAccount >", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThanOrEqualTo(String value) {
            addCriterion("wxAccount >=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThan(String value) {
            addCriterion("wxAccount <", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThanOrEqualTo(String value) {
            addCriterion("wxAccount <=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLike(String value) {
            addCriterion("wxAccount like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotLike(String value) {
            addCriterion("wxAccount not like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountIn(List<String> values) {
            addCriterion("wxAccount in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotIn(List<String> values) {
            addCriterion("wxAccount not in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountBetween(String value1, String value2) {
            addCriterion("wxAccount between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotBetween(String value1, String value2) {
            addCriterion("wxAccount not between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickIsNull() {
            addCriterion("wxAccountNick is null");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickIsNotNull() {
            addCriterion("wxAccountNick is not null");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickEqualTo(String value) {
            addCriterion("wxAccountNick =", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickNotEqualTo(String value) {
            addCriterion("wxAccountNick <>", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickGreaterThan(String value) {
            addCriterion("wxAccountNick >", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickGreaterThanOrEqualTo(String value) {
            addCriterion("wxAccountNick >=", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickLessThan(String value) {
            addCriterion("wxAccountNick <", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickLessThanOrEqualTo(String value) {
            addCriterion("wxAccountNick <=", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickLike(String value) {
            addCriterion("wxAccountNick like", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickNotLike(String value) {
            addCriterion("wxAccountNick not like", value, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickIn(List<String> values) {
            addCriterion("wxAccountNick in", values, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickNotIn(List<String> values) {
            addCriterion("wxAccountNick not in", values, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickBetween(String value1, String value2) {
            addCriterion("wxAccountNick between", value1, value2, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andWxaccountnickNotBetween(String value1, String value2) {
            addCriterion("wxAccountNick not between", value1, value2, "wxaccountnick");
            return (Criteria) this;
        }

        public Criteria andGroupnoIsNull() {
            addCriterion("groupNo is null");
            return (Criteria) this;
        }

        public Criteria andGroupnoIsNotNull() {
            addCriterion("groupNo is not null");
            return (Criteria) this;
        }

        public Criteria andGroupnoEqualTo(String value) {
            addCriterion("groupNo =", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoNotEqualTo(String value) {
            addCriterion("groupNo <>", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoGreaterThan(String value) {
            addCriterion("groupNo >", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoGreaterThanOrEqualTo(String value) {
            addCriterion("groupNo >=", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoLessThan(String value) {
            addCriterion("groupNo <", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoLessThanOrEqualTo(String value) {
            addCriterion("groupNo <=", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoLike(String value) {
            addCriterion("groupNo like", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoNotLike(String value) {
            addCriterion("groupNo not like", value, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoIn(List<String> values) {
            addCriterion("groupNo in", values, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoNotIn(List<String> values) {
            addCriterion("groupNo not in", values, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoBetween(String value1, String value2) {
            addCriterion("groupNo between", value1, value2, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnoNotBetween(String value1, String value2) {
            addCriterion("groupNo not between", value1, value2, "groupno");
            return (Criteria) this;
        }

        public Criteria andGroupnameIsNull() {
            addCriterion("groupName is null");
            return (Criteria) this;
        }

        public Criteria andGroupnameIsNotNull() {
            addCriterion("groupName is not null");
            return (Criteria) this;
        }

        public Criteria andGroupnameEqualTo(String value) {
            addCriterion("groupName =", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameNotEqualTo(String value) {
            addCriterion("groupName <>", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameGreaterThan(String value) {
            addCriterion("groupName >", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameGreaterThanOrEqualTo(String value) {
            addCriterion("groupName >=", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameLessThan(String value) {
            addCriterion("groupName <", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameLessThanOrEqualTo(String value) {
            addCriterion("groupName <=", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameLike(String value) {
            addCriterion("groupName like", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameNotLike(String value) {
            addCriterion("groupName not like", value, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameIn(List<String> values) {
            addCriterion("groupName in", values, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameNotIn(List<String> values) {
            addCriterion("groupName not in", values, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameBetween(String value1, String value2) {
            addCriterion("groupName between", value1, value2, "groupname");
            return (Criteria) this;
        }

        public Criteria andGroupnameNotBetween(String value1, String value2) {
            addCriterion("groupName not between", value1, value2, "groupname");
            return (Criteria) this;
        }

        public Criteria andMembernumIsNull() {
            addCriterion("memberNum is null");
            return (Criteria) this;
        }

        public Criteria andMembernumIsNotNull() {
            addCriterion("memberNum is not null");
            return (Criteria) this;
        }

        public Criteria andMembernumEqualTo(Integer value) {
            addCriterion("memberNum =", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumNotEqualTo(Integer value) {
            addCriterion("memberNum <>", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumGreaterThan(Integer value) {
            addCriterion("memberNum >", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumGreaterThanOrEqualTo(Integer value) {
            addCriterion("memberNum >=", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumLessThan(Integer value) {
            addCriterion("memberNum <", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumLessThanOrEqualTo(Integer value) {
            addCriterion("memberNum <=", value, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumIn(List<Integer> values) {
            addCriterion("memberNum in", values, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumNotIn(List<Integer> values) {
            addCriterion("memberNum not in", values, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumBetween(Integer value1, Integer value2) {
            addCriterion("memberNum between", value1, value2, "membernum");
            return (Criteria) this;
        }

        public Criteria andMembernumNotBetween(Integer value1, Integer value2) {
            addCriterion("memberNum not between", value1, value2, "membernum");
            return (Criteria) this;
        }

        public Criteria andQuitnumIsNull() {
            addCriterion("quitNum is null");
            return (Criteria) this;
        }

        public Criteria andQuitnumIsNotNull() {
            addCriterion("quitNum is not null");
            return (Criteria) this;
        }

        public Criteria andQuitnumEqualTo(Integer value) {
            addCriterion("quitNum =", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumNotEqualTo(Integer value) {
            addCriterion("quitNum <>", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumGreaterThan(Integer value) {
            addCriterion("quitNum >", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("quitNum >=", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumLessThan(Integer value) {
            addCriterion("quitNum <", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumLessThanOrEqualTo(Integer value) {
            addCriterion("quitNum <=", value, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumIn(List<Integer> values) {
            addCriterion("quitNum in", values, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumNotIn(List<Integer> values) {
            addCriterion("quitNum not in", values, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumBetween(Integer value1, Integer value2) {
            addCriterion("quitNum between", value1, value2, "quitnum");
            return (Criteria) this;
        }

        public Criteria andQuitnumNotBetween(Integer value1, Integer value2) {
            addCriterion("quitNum not between", value1, value2, "quitnum");
            return (Criteria) this;
        }

        public Criteria andChatnumIsNull() {
            addCriterion("chatNum is null");
            return (Criteria) this;
        }

        public Criteria andChatnumIsNotNull() {
            addCriterion("chatNum is not null");
            return (Criteria) this;
        }

        public Criteria andChatnumEqualTo(Integer value) {
            addCriterion("chatNum =", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumNotEqualTo(Integer value) {
            addCriterion("chatNum <>", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumGreaterThan(Integer value) {
            addCriterion("chatNum >", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chatNum >=", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumLessThan(Integer value) {
            addCriterion("chatNum <", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumLessThanOrEqualTo(Integer value) {
            addCriterion("chatNum <=", value, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumIn(List<Integer> values) {
            addCriterion("chatNum in", values, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumNotIn(List<Integer> values) {
            addCriterion("chatNum not in", values, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumBetween(Integer value1, Integer value2) {
            addCriterion("chatNum between", value1, value2, "chatnum");
            return (Criteria) this;
        }

        public Criteria andChatnumNotBetween(Integer value1, Integer value2) {
            addCriterion("chatNum not between", value1, value2, "chatnum");
            return (Criteria) this;
        }

        public Criteria andDtIsNull() {
            addCriterion("dt is null");
            return (Criteria) this;
        }

        public Criteria andDtIsNotNull() {
            addCriterion("dt is not null");
            return (Criteria) this;
        }

        public Criteria andDtEqualTo(String value) {
            addCriterion("dt =", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotEqualTo(String value) {
            addCriterion("dt <>", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtGreaterThan(String value) {
            addCriterion("dt >", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtGreaterThanOrEqualTo(String value) {
            addCriterion("dt >=", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLessThan(String value) {
            addCriterion("dt <", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLessThanOrEqualTo(String value) {
            addCriterion("dt <=", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLike(String value) {
            addCriterion("dt like", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotLike(String value) {
            addCriterion("dt not like", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtIn(List<String> values) {
            addCriterion("dt in", values, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotIn(List<String> values) {
            addCriterion("dt not in", values, "dt");
            return (Criteria) this;
        }

        public Criteria andDtBetween(String value1, String value2) {
            addCriterion("dt between", value1, value2, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotBetween(String value1, String value2) {
            addCriterion("dt not between", value1, value2, "dt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}